<!--
 * @Description: 
 * @Author: 胡涛
 * @Date: 2024-07-18 22:34:48
 * @LastEditors: 胡涛
 * @LastEditTime: 2024-07-30 00:17:08
-->
<template>
  <div class="overview overview-page">
    <div class="overview-mapview">
      <map-view />
    </div>
    <div class="overview-left-shadow"></div>
    <div class="overview-right-shadow"></div>
    <div class="overview-left">
      <div class="section">
        <div class="section-header">
          <span> 辖区企业信息统计</span>
          <span class="more"></span>
        </div>
        <div class="section-wrapper">
          <enterprise-count />
        </div>
      </div>
      <div class="section">
        <div class="section-header">
          <span> 近一月水质变化趋势 </span>
          <span class="more">上游水库</span>
        </div>
        <div class="section-wrapper">
          <div class="content">暂无数据</div>
        </div>
      </div>
      <div class="section section-bottom">
        <div class="section-header">
          <span>辖区内用电量统计</span>
          <span class="more">单位：kWh</span>
        </div>
        <div class="section-wrapper">
          <div class="content">暂无数据</div>
        </div>
      </div>
    </div>
    <div class="overview-right">
      <div class="section">
        <div class="section-header">
          <span> 空气质量指数</span>
          <span class="more">时间：2024-07-18 23:42</span>
        </div>
        <div class="section-wrapper">
          <div class="content">暂无数据</div>
        </div>
      </div>
      <div class="section">
        <div class="section-header">
          <span> 未解除报警</span>
          <span class="more">14次</span>
        </div>
        <div class="section-wrapper">
          <div class="content">暂无数据</div>
        </div>
      </div>
      <div class="section section-bottom">
        <div class="section-header">
          <span> 报警统计</span>
          <span class="more">今日 本周 本月</span>
        </div>
        <div class="section-wrapper">
          <div class="content">暂无数据</div>
        </div>
      </div>
    </div>
    <div class="overview-bottom">
      <div class="section">
        <div class="section-header">
          <span> 企业用电量TOP5（近七日）</span>
          <span class="more">单位：kWh</span>
        </div>
        <div class="section-wrapper">
          <div class="content">暂无数据</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import EnterpriseCount from "./components/EnterpriseCount.vue";
import MapView from "./components/MapView.vue";
</script>

<style lang="less" scoped>
.overview {
  &-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  &-mapview {
    width: 100%;
    height: 100%;
  }

  .section {
    border-radius: 5px;
    border-radius: 8px;
    background: rgba(60, 141, 188, 0.35);
    -webkit-box-shadow: 0 5px 9px 0 rgba(86, 151, 153, 0.2);
    box-shadow: 0 5px 9px 0 rgba(33, 51, 117, 0.2);
    margin-top: 10px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    &:first-child {
      margin-top: 0;
    }

    &-bottom {
      flex: none;
      height: 240px;
    }

    &-header {
      padding: 10px;
      display: flex;
      justify-content: space-between;
      color: #fff;
      border-bottom: 1px solid #40ffef66;
      font-size: 15px;
      align-items: center;
      background-color: rgba(78, 86, 88, 0.75);
      .more {
        font-size: 13px;
      }
    }

    &-wrapper {
      flex: 1;
      padding: 10px;
      overflow: hidden;

      .content {
        backdrop-filter: blur(10px);
        padding: 24px;
        color: #fff;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
      }
    }
  }

  &-left {
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 380px;
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }

  &-right {
    right: 10px;
    top: 10px;
    bottom: 10px;
    width: 380px;
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }

  &-bottom {
    right: 400px;
    left: 400px;
    bottom: 10px;
    height: 240px;
    position: absolute;
    z-index: 1;
    display: flex;
  }

  &-left-shadow {
    left: 0;
    top: 0;
    bottom: 0;
    width: 600px;
    position: absolute;
    pointer-events: none;
    // background: linear-gradient(
    //   90deg,
    //   rgba(0, 0, 0, 0.45),
    //   rgba(0, 0, 0, 0.35) 45%,
    //   rgba(0, 0, 0, 0)
    // );
  }

  &-right-shadow {
    right: 0;
    top: 0;
    bottom: 0;
    width: 600px;
    position: absolute;
    pointer-events: none;
    // background: linear-gradient(
    //   -90deg,
    //   rgba(0, 0, 0, 0.45),
    //   rgba(0, 0, 0, 0.35) 45%,
    //   rgba(0, 0, 0, 0)
    // );
  }
}
</style>
